<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8"/>
<title>Insert title here</title>
 <script src="jquery-1.8.1.js"></script>
</head>
<body>

端口查看：
<input id="t" type="button" value="test" />

<script>
$("#t").click (function () {
	
    $.ajax({
        url: '/port',
        data: null,
        success: function (res) {
            alert(res);
        },
        dataType: 'json'
    })
}) ;
</script>
</body>
</html>